package lol.clann.minecraft.springboot.plugin.core.mapper;

import lol.clann.minecraft.springboot.plugin.core.model.DDLVersion;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 *
 * @author pyz
 * @date 2019/8/1 11:50 PM
 */
public interface DDLMapper {
    List<DDLVersion> fetchDDlVersion(@Param("plugins") Set<String> plugins);

    void insertDDlVersion(DDLVersion ddlVersion);

    void updateDDlVersion(DDLVersion ddlVersion);

    void execute(@Param("sql") String sql);

    boolean tableExist(@Param("table") String table);
}
